[Devise] confirmation_url points to localhost

Posted by Ved on Stack Overflow See other posts from Stack Overflow or by Ved
Published on 2011-01-09T06:23:05Z Indexed on 2011/01/09 6:53 UTC
Read the original article Hit count: 244

Filed under:
|
|

I am using Devise and omniauth for authentication in my rails app. I have followed readme and put the following line in my production.rb :

config.action_mailer.default_url_options = { :host => 
'http://morning-autumn-487.heroku.com' } 

My mailer has the following code:

<%= link_to 'Confirm my account',confirmation_url(@user, :confirmation_token =>
@user.confirmation_token) %>

When I upload the app to heroku, the confirmation mail has the following link for registration in the email : http://127.0.0.1:3000/users/confirmation?confirmation_token=8TyGWQo6y... Is there a setting that governs this host name ?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about heroku